package com.rosebud.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.rosebud.bean.User;
import com.rosebud.mapper.UserMapper;
import com.rosebud.service.interf.UserService;

@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserMapper userMapper;

	@Override
	@Transactional
	public User getUser(int userId) {
		return userMapper.getUser(userId);
	}

}
